package fluo.androidclient;

import java.io.Serializable;
import java.util.ArrayList;

public class FluoMessage implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 102238419168760599L;
	String singleString;
	String username;
	String password;
	ArrayList<String> desktopServerList;
	ArrayList<ArrayList<String>> songsData;
	public boolean register = false;
	public boolean isId3 = false;
	
	public FluoMessage(String SS)
	{
		singleString = SS;
	}
	
	public String getSingleString()
	{
		return singleString;
	}
		
	public String getUNPW()
	{
		return username + ":" + password;
	}
	
	public FluoMessage(ArrayList<String> DSList)
	{
		desktopServerList = new ArrayList<String>();
		for(int i = 0; i<DSList.size(); i++)
		{
			desktopServerList.add(DSList.get(i));
		}
	}
	
	public ArrayList<String> getDSList()
	{
		return desktopServerList;
	}
	
	public FluoMessage(String un, String pw, boolean reg)
	{
		username = un;
		password = pw;
		register = reg;
	}
	
	public FluoMessage(ArrayList<ArrayList<String>> id3List, boolean Data) {
		songsData = new ArrayList<ArrayList<String>>();
		isId3 = true;
		for(int i = 0;i < id3List.size(); i++)
		{
			songsData.add(id3List.get(i));
		}
	}

	public boolean getRegister(){
		return register;
	}
	public boolean getId3()
	{
		return isId3;
	}
	public ArrayList<ArrayList<String>> getSongsData()
	{
		return songsData;
	}
}
